package router

import (
	"github.com/gin-gonic/gin"
	"yunwei/go_api/application/api"
	"yunwei/go_api/application/utils"
)

func InitUserRouter(Router *gin.RouterGroup) {
	//用户相关的路由
	UserRouter := Router.Group("user")
	//Router.Use(middleware.JWTAuthorization())
	{
		// 用户认证登陆
		utils.Register(UserRouter, []string{"POST"}, "login", api.UserAuthenticate)
		// 用户创建
		utils.Register(UserRouter, []string{"POST"}, "register", api.UserCreate)
	}
}
